Fixed issue with logging.