Fix bug of fetching second page before scrolling down to end