fix of the Elevator Bug.