fix gps.cpp problem