fix incorrect redirection