Fix a bug in copy/paste of a node and picking of edges