diff --git a/Common/GetOptions.cpp b/Common/GetOptions.cpp
index ba5df5e083e8b68bf7a85549815c53fc4e7add24..e41129b0c6f57cc4b409f62a3ca08149951a380d 100644
--- a/Common/GetOptions.cpp
+++ b/Common/GetOptions.cpp
@@ -1,4 +1,4 @@
-// $Id: GetOptions.cpp,v 1.20 2001-05-20 19:24:53 geuzaine Exp $
+// $Id: GetOptions.cpp,v 1.21 2001-05-21 08:56:35 geuzaine Exp $
 
 #include "Gmsh.h"
 #include "GmshUI.h"
@@ -130,7 +130,7 @@ void Get_Options (int argc, char *argv[], int *nbfiles) {
         }
       }
       else if(!strcmp(argv[i]+1, "constrain")){ 
-	CTX.mesh.constrained_bgmesh = 1;
+	CTX.mesh.constrained_bgmesh = 1; i++;
       }
       else if(!strcmp(argv[i]+1, "convert")){ 
 	i++;
diff --git a/Mesh/2D_Mesh.cpp b/Mesh/2D_Mesh.cpp
index ff7fd2fa83a22d81e24c49089fb6d4528fec60e9..547830973a62e2187a0056583985c9f259c45aee 100644
--- a/Mesh/2D_Mesh.cpp
+++ b/Mesh/2D_Mesh.cpp
@@ -1,4 +1,4 @@
-// $Id: 2D_Mesh.cpp,v 1.21 2001-05-20 19:24:53 geuzaine Exp $
+// $Id: 2D_Mesh.cpp,v 1.22 2001-05-21 08:56:35 geuzaine Exp $
 
 /*
    Maillage Delaunay d'une surface (Point insertion Technique)
@@ -498,6 +498,8 @@ int mesh_domain (ContourPeek * ListContours, int numcontours,
     BGMESH = doc;
     InitBricks (BGMESH);
   }
+  else
+    BGMESH = NULL;
 
   /* elimination des triangles exterieurs + verification de l'existence
      des edges (coherence) */