Fix problem when a group and an array are selected.