fixing for gps.cpp