fixed error when scrolling over last frame