fix a bug in user.js