Fixing an issue with logger.