Fix redirect issue.