changed 'reviewIndex' to maxActiveGroupingIndex