Fixed a bug that allowed users to create only one group.
Merge branch 'hotfix/GroupingCheck'