Fix for logging.