diff --git a/src/editor/js/structures/graph/graph.ts b/src/editor/js/structures/graph/graph.ts
index 9553a532fc96fa9e9da6ac17b21ea84c0d7207ca..ebf36c2020c337a9f32aae697b6034ace8c660ca 100644
--- a/src/editor/js/structures/graph/graph.ts
+++ b/src/editor/js/structures/graph/graph.ts
@@ -179,7 +179,7 @@ export class Graph extends ManagedData {
             nodeType.color = "#000000";
         }
 
-        this.data.types.push(node);
+        this.data.types.push(nodeType);
 
         this.triggerOnChange();
         this.storeCurrentData("Added node [" + nodeType + "]");
@@ -444,7 +444,7 @@ export class Graph extends ManagedData {
         // TODO: Remove, when types are directly parsed and not just implicit
         data.nodes.forEach((node) => {
             const sharedType: NodeType = data.types.find((type) =>
-                type.equals(node.type)
+                type.name === node.type.name || type.equals(node.type)
             );
 
             if (sharedType !== undefined) {