Bug fix -- triggering infinite scrolling when shouldn't be