Fixed a problem with the page navigation