fix double redirection