fix an error when adding user