Fix error in the grouping actions. Fixes #130.