Fixes infinite scrolling.