fixed a crash in gps for device that do not have gps