fix bug for adding user.