Fixed a minor bug with redirecting from the main page.