temp fix for Pipeline crash; do-while moved to L183 in Elevator.cpp