Fixed bug in the Prompt class.