Small fixes of logger.