Fixed IO redirection