userManager.js bug