Fixed the page not redirecting error.