corrected variable in gps check