Fixed an issue with error output.