fix the redirection to stderr bug #2