fix the groups bug