Fixed the redirect issue.