Index: /applications/editors/josm/plugins/turnlanes/src/org/openstreetmap/josm/plugins/turnlanes/model/Road.java
===================================================================
--- /applications/editors/josm/plugins/turnlanes/src/org/openstreetmap/josm/plugins/turnlanes/model/Road.java	(revision 36205)
+++ /applications/editors/josm/plugins/turnlanes/src/org/openstreetmap/josm/plugins/turnlanes/model/Road.java	(revision 36206)
@@ -127,4 +127,5 @@
                 if (other == null || !TurnlanesUtils.getMemberNode(other, "end").equals(n)) {
                     target = createLengthsRelation();
+                    cmd.add(target);
                 } else {
                     target = other;
@@ -155,7 +156,4 @@
                 r.addMember(new RelationMember(Constants.LENGTHS_ROLE_WAYS, s.getWay()));
             }
-
-            n.getDataSet().addPrimitive(r);
-
             return r;
         }
