diff --git a/cse-lib/network-processing/src/main/java/com/farao_community/farao/cse/network_processing/busbar_change/NetworkModifier.java b/cse-lib/network-processing/src/main/java/com/farao_community/farao/cse/network_processing/busbar_change/NetworkModifier.java
index b3f90371..49c7e2e4 100644
--- a/cse-lib/network-processing/src/main/java/com/farao_community/farao/cse/network_processing/busbar_change/NetworkModifier.java
+++ b/cse-lib/network-processing/src/main/java/com/farao_community/farao/cse/network_processing/busbar_change/NetworkModifier.java
@@ -184,11 +184,11 @@ private void moveTwoWindingsTransformer(TwoWindingsTransformer transformer, TwoS
String newId = replaceSimpleBranchNode(transformer, side, bus.getId());
TwoWindingsTransformerAdder adder = initializeTwoWindingsTransformerAdderToMove(transformer, newId);
setBranchAdderProperties(adder, transformer, side, bus);
- removeFromNetworkAndAliasesMap(transformer);
TwoWindingsTransformer newTransformer = adder.add();
copyCurrentLimits(transformer, newTransformer);
copyProperties(transformer, newTransformer);
copyTapChanger(transformer, newTransformer);
+ removeFromNetworkAndAliasesMap(transformer);
LOGGER.debug("TwoWindingsTransformer '{}' has been removed, new transformer '{}' has been created", transformer.getId(), newTransformer.getId());
addAliasesFromOldToNew(transformer, newTransformer);
}
diff --git a/pom.xml b/pom.xml
index e1124853..54a6c7de 100644
--- a/pom.xml
+++ b/pom.xml
@@ -50,7 +50,7 @@
3.0.0
- 1.35.0
+ 1.37.0
4.22.1
1.30.0
1.33.0