Fixes error message logging.