fixed some bugs to infinite scroll but still doesn't work