Fixed syntax error
Added error checking in the case of no gps fix