Actually fixed subgroup duplicate bug.