fixed infinite scrolling bug