fix bug for user management