Prevented the highPtrPid of intermediate nodes from being overwritten