fix redirection error