Fix bug with overscrolling.