fixed redirection error