diff --git a/src/editor/js/structures/graph/nodetype.ts b/src/editor/js/structures/graph/nodetype.ts
index 78362ea791496c58395bcf23f5d7adc723118043..75b464ddedc311decde733b6bdae1cd84238ab6b 100644
--- a/src/editor/js/structures/graph/nodetype.ts
+++ b/src/editor/js/structures/graph/nodetype.ts
@@ -54,6 +54,6 @@ export class NodeType extends GraphElement {
 
         const type = other as NodeType;
 
-        return type.name === this.name;
+        return type.id === this.id;
     }
 }