corrected bugs in prompt display