fix bugs in infinitescroll