Fix buggy infinite scroll