Fixes a warning generated if no groups are created