Fixed a bug that would redirect to the wrong page.