Fix bug where scroll position gets out of order after user jumps to a specific page.