Fix node deletion in nodetocode