Fixed infinite scrolling issue for search results