Fixing infinite scroll issue.