Fixing subgroup count