fix crash problem with gps on avaliable