diff --git a/Plugin/Crack.cpp b/Plugin/Crack.cpp
index ffbff8fc787aa8ffe38f0a0934e6e150c0a40a49..2d16d21043fe038572cbe0f81f074c7b58e72528 100644
--- a/Plugin/Crack.cpp
+++ b/Plugin/Crack.cpp
@@ -115,6 +115,9 @@ PView *GMSH_CrackPlugin::execute(PView *view)
       for(int j = 0; j < crackElements[i]->getNumVertices(); j++){
         MVertex *v = crackElements[i]->getVertex(j);
         crackVertices.insert(v);
+      }
+      for(int j = 0; j < crackElements[i]->getNumPrimaryVertices(); j++){
+        MVertex *v = crackElements[i]->getVertex(j);
         if(bndVertices.find(v) == bndVertices.end())
           bndVertices.insert(v);
         else