diff --git a/Geo/GModelIO_OCC.cpp b/Geo/GModelIO_OCC.cpp
index d57b1d906ac767af22b3436a073901d9cce0db0a..ec853d4d55f5cc5afae52ac9f2cc0d441ed9e45b 100644
--- a/Geo/GModelIO_OCC.cpp
+++ b/Geo/GModelIO_OCC.cpp
@@ -593,7 +593,7 @@ static void applyOCCMeshConstraints(GModel *m, const void *constraints)
           GFace *gf = *it2;
           if(gf->getNativeType() != GEntity::OpenCascadeModel) continue;
           TopoDS_Shape *shape2 = (TopoDS_Shape*)gf->getNativePtr();
-          if(shape.isSame(*shape2)){
+          if(shape.IsSame(*shape2)){
             Msg::Debug("... embedding in face %g", gf->tag());
             gf->addEmbeddedVertex(gv);
           }