Fix redirection problem.