fixed bug in prompt