Fix page not going to the top when moving between pages.