OccuranceIndex perfect! set nextDoc back to original