Fix wrong navigation to main page.