fix redirect.