fixed bug: bad group type detection