Fixed the redirection of the error output