fixed the selected text from expanding with multiple lines