It should also check that there is only one SelectionGroup. Same below.