id/groups: fix group list handling

Fixes #236
Fixes #239