Fix a redirection bug