Index: applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/PTAssistantValidatorTest.java
===================================================================
--- applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/PTAssistantValidatorTest.java	(revision 33502)
+++ applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/PTAssistantValidatorTest.java	(revision 33503)
@@ -458,4 +458,5 @@
                 || testError.getCode() == ERROR_CODE_SORTING
                 || testError.getCode() == ERROR_CODE_PARTIAL_SORTING
+                || testError.getCode() == ERROR_CODE_TRIVIAL_FIX
                 || testError.getCode() == ERROR_CODE_END_STOP
                 || testError.getCode() == ERROR_CODE_PLATFORM_PART_OF_HIGHWAY) {
@@ -492,4 +493,8 @@
                 || testError.getCode() == ERROR_CODE_END_STOP) {
             commands.add(WayChecker.fixErrorByZooming(testError));
+        }
+
+        if (testError.getCode() == ERROR_CODE_TRIVIAL_FIX) {
+            commands.add(RouteChecker.fixTrivialError(testError));
         }
 
Index: applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/RouteChecker.java
===================================================================
--- applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/RouteChecker.java	(revision 33502)
+++ applications/editors/josm/plugins/pt_assistant/src/org/openstreetmap/josm/plugins/pt_assistant/validation/RouteChecker.java	(revision 33503)
@@ -110,5 +110,5 @@
                         Builder builder = TestError.builder(this.test, Severity.WARNING, PTAssistantValidatorTest.ERROR_CODE_TRIVIAL_FIX);
                         builder.message(tr("PT: Route gap can be closed by adding a single way"));
-                        builder.primitives(relation, before, after, fix);
+                        builder.primitives(relation, before, fix, after);
                         TestError e = builder.build();
                         this.errors.add(e);
@@ -372,4 +372,31 @@
     }
 
+    //the trivial fix simply adds the right way (the one found during the
+    //detection phase) in the gap in order to close it
+    protected static Command fixTrivialError(TestError testError) {
+
+        if (testError.getCode() != PTAssistantValidatorTest.ERROR_CODE_TRIVIAL_FIX) {
+            return null;
+        }
+
+        List<OsmPrimitive> primitives = new ArrayList<>(testError.getPrimitives());
+        Relation originalRelation = (Relation) primitives.get(0);
+        Way before = (Way) primitives.get(1);
+        Way fix = (Way) primitives.get(2);
+
+        int index = 0;
+        List<RelationMember> members = originalRelation.getMembers();
+        for (index = 0; index < members.size(); index++) {
+            if (members.get(index).getMember().equals(before)) {
+                break;
+            }
+        }
+
+        Relation fixedRelation = new Relation(originalRelation);
+        fixedRelation.addMember(index + 1, new RelationMember(null, fix));
+
+        return new ChangeCommand(originalRelation, fixedRelation);
+    }
+
     public PTRouteDataManager getManager() {
         return manager;
