fix gps exception