fixed location update bug