fixed bug in infinite scroll