Fixed redirect issue.