fix group index bug