Possible fix for logging.