fixed issue where long lines would overwrite prompt