1-index TreeNode ids to prevent filter from ignoring 0-indexed nodes.