Fixed a bug where users could navigate to the second page even though there is no such page.