Fixed bug on logger.js