fixed scrolling issues if the text has been copied