fixed bug on infinite scrolling