fix bug in userController