bug in prompt overwrite itself