logManager.js bug