fix redirection fail