fixed groups bug