fixed small bug where GPS fix flag was not set