diff --git a/converter-CellDesigner/src/main/java/lcsb/mapviewer/converter/model/celldesigner/reaction/ReactionFromXml.java b/converter-CellDesigner/src/main/java/lcsb/mapviewer/converter/model/celldesigner/reaction/ReactionFromXml.java
index 7eb2158dffba83ece049c8136acaa0805f931598..942ecfe62f3b50d0eed7fb4209dc69dfae5e2390 100644
--- a/converter-CellDesigner/src/main/java/lcsb/mapviewer/converter/model/celldesigner/reaction/ReactionFromXml.java
+++ b/converter-CellDesigner/src/main/java/lcsb/mapviewer/converter/model/celldesigner/reaction/ReactionFromXml.java
@@ -909,10 +909,10 @@ public class ReactionFromXml {
       PolylineData line = new PolylineData();
       line.addPoint(pointTransformation.copyPoint(product.getLine().getBeginPoint()));
 
-      Point2D secondPoint = pointTransformation.getPointOnLine(product.getLine().getPoints().get(1),
-          product.getLine().getPoints().get(0), 0.4);
-      Point2D thirdPoint = pointTransformation.getPointOnLine(product.getLine().getPoints().get(1),
-          product.getLine().getPoints().get(0), 0.6);
+      Point2D secondPoint = pointTransformation.getPointOnLine(product.getLine().getPoints().get(0),
+          product.getLine().getPoints().get(1), 0.4);
+      Point2D thirdPoint = pointTransformation.getPointOnLine(product.getLine().getPoints().get(0),
+          product.getLine().getPoints().get(1), 0.6);
       line.addPoint(pointTransformation.copyPoint(secondPoint));
       operator.setLine(line);
 
diff --git a/converter-graphics/src/main/java/lcsb/mapviewer/converter/graphics/bioEntity/reaction/ReactionConverter.java b/converter-graphics/src/main/java/lcsb/mapviewer/converter/graphics/bioEntity/reaction/ReactionConverter.java
index ae15494ba7b45f803b0697fc05b502e9323705fa..925e6e2566904679644adde76b72cf9c0bc497a4 100644
--- a/converter-graphics/src/main/java/lcsb/mapviewer/converter/graphics/bioEntity/reaction/ReactionConverter.java
+++ b/converter-graphics/src/main/java/lcsb/mapviewer/converter/graphics/bioEntity/reaction/ReactionConverter.java
@@ -127,11 +127,11 @@ public class ReactionConverter extends BioEntityConverter<Reaction> {
           0.5 - RECT_SIZE / (2 * startPoint.distance(endPoint)));
       Point2D rectEndPoint = pointTransformation.getPointOnLine(startPoint, endPoint,
           0.5 + RECT_SIZE / (2 * startPoint.distance(endPoint)));
-      PolylineData preRectangleLine = new PolylineData();
+      PolylineData preRectangleLine = line.getSubline(0, 0);
       preRectangleLine.addPoint(startPoint);
       preRectangleLine.addPoint(rectStartPoint);
 
-      PolylineData postRectangleLine = new PolylineData();
+      PolylineData postRectangleLine = line.getSubline(0, 0);
       postRectangleLine.addPoint(rectEndPoint);
       postRectangleLine.addPoint(endPoint);