Fixed bug where exit command when to class selection