Fix repeatedly reading tempNodeRefs file