fixed group index bug