Fixed an error related to logger.