fix shell redirection