index ParamGroups with its local index in runAfterParamGroupChange for greater efficiency