fix groups bug