elevator.c fix