fixed crash if no gps data is present