fixed bug related to infinite scroll