corrects the redirection