fixed has_membership True for invalid groups