Fix node id, root node has now ID 1.