fixed a redirection issue