groups: fix condition when selecting different types to show in table