clear planPIndex.Nodes before writing into it