diff --git a/AlgebraicDataflowArchitectureModel/src/models/algebra/Term.java b/AlgebraicDataflowArchitectureModel/src/models/algebra/Term.java index 3398f18..cfef320 100644 --- a/AlgebraicDataflowArchitectureModel/src/models/algebra/Term.java +++ b/AlgebraicDataflowArchitectureModel/src/models/algebra/Term.java @@ -194,8 +194,8 @@ } } if (!bReduced) return this; - Term newTerm = new Term(symbol, newChildren); - newTerm.setType(type); + Term newTerm = (Term) this.clone(); + newTerm.children = newChildren; return newTerm; } }