fixed logger.js