Fixed unnecessary scrolling to the end