fix location update