fix bugs in endless scroll