Fix warnings and logger.