affinity group should not be undefined