Reset page when current page is out of bounds.