Fixed bug in user management