Update nid