diff --git a/Mesh/meshGFaceOptimize.cpp b/Mesh/meshGFaceOptimize.cpp
index d0ceca83a48579a3095883bca00986ad1177257b..28746c059e2130aed696859ef6f498ab5fe58c46 100644
--- a/Mesh/meshGFaceOptimize.cpp
+++ b/Mesh/meshGFaceOptimize.cpp
@@ -2163,6 +2163,7 @@ void recombineIntoQuads(GFace *gf,
 	  if (z) printf("%d swops !!\n",z);
           if(z && saveAll){ sprintf(NAME,"iter%dS.msh",COUNT++); gf->model()->writeMSH(NAME); }
           if (!(w+x+y+z)) break;
+	  if (COUNT == 10)break;
         }
       }
       edgeSwapQuadsForBetterQuality(gf);