fix an error when entering or exiting a vehicle