fixed bug in ExitController