fix bug in node_ids