fixed autocomplete glitch in prompt