fix bug on redirection
more output while redirection error