fix problem with infite scrolling