fix scrolling to the end on smaller screens