Made node_to_nrml more robust