Fix frontend gps reading/calculation