fix redirection