fix prune_index again since once we remove an item we have to adjust the start index of the next batch