Fixed io redirection.