correct line wrapping issue with prompt