fixed bugs related to subgroup management