remove double-null memberships