fixed gps bug