fix groups tree