fix subgroups