diff --git a/src/plugin/Crack.cpp b/src/plugin/Crack.cpp
index a1c932b17decc1f1c6cab9a4ba8748f2c3687c33..d7e00f0c43716f87ce470b833ab939491b7e1118 100644
--- a/src/plugin/Crack.cpp
+++ b/src/plugin/Crack.cpp
@@ -254,13 +254,6 @@ PView *GMSH_CrackPlugin::execute(PView *view)
     }
   }
 
-  if(debug) {
-    std::map<int, std::vector<double> > d;
-    for(auto e : oneside) d[e.first->getNum()] = {(double)e.first->getNum()};
-    view = new PView("Elements on positive side of crack", "ElementData",
-                     GModel::current(), d);
-  }
-
   // create new crack entity
 
   // TODO: the new discrete entities do not have a consistent topology: we don't
@@ -332,6 +325,18 @@ PView *GMSH_CrackPlugin::execute(PView *view)
     }
   }
 
+  if(debug) {
+    std::map<int, std::vector<double> > d;
+    for(auto e : oneside) {
+      // 1: if node duplicated, 0: if node not duplicated
+      std::vector<double> nodeDuplicated(e.first->getNumVertices(), 0.0);
+      for(auto & node: e.second) nodeDuplicated[node] = 1.0;
+      d[e.first->getNum()] = nodeDuplicated;
+    }
+    view = new PView("Positive-side elements and duplicated nodes (1: true, 0: false)",
+                     "ElementNodeData", GModel::current(), d, 0, 1);
+  }
+
   CTX::instance()->mesh.changed = ENT_ALL;
 
   return view;