diff --git a/src/main/resources/META-INF/resources/primefaces/diagram/diagram.js b/src/main/resources/META-INF/resources/primefaces/diagram/diagram.js
index <HASH>..<HASH> 100644
--- a/src/main/resources/META-INF/resources/primefaces/diagram/diagram.js
+++ b/src/main/resources/META-INF/resources/primefaces/diagram/diagram.js
@@ -175,9 +175,8 @@ PrimeFaces.widget.Diagram = PrimeFaces.widget.DeferredWidget.extend({
 
         if(this.connectionChanged) {
             options.params.push({name: this.id + '_connectionChanged', value: true});
-        } else {
-            this.connectionChanged = false;
         }
+        this.connectionChanged = false;
 
         if(this.hasBehavior('connect')) {
             this.callBehavior('connect', options);
Fix #<I>: Diagram fix connection count (#<I>)