Fix the redirection to files.