Fix bug when scrolling off of the top of the screen.