fixed bug with infinite scroll