Fixed bug in command prompt