ensure the reused root nodes are re-indexed