groups: fix argument parsing