Fixed incorrect redirection