Fix error message redirection to stdout.