diff --git a/Geo/GModelIO_GEOM.cpp b/Geo/GModelIO_GEOM.cpp
index b3fd5d223f0c3d0a5e38c10fd0d2e7fe6c5a44c6..04c4d5a974a2bc88b28635543992986469184fe0 100644
--- a/Geo/GModelIO_GEOM.cpp
+++ b/Geo/GModelIO_GEOM.cpp
@@ -7,10 +7,10 @@
 #include "MTriangle.h"
 
 static bool getVertices(int num, int *indices, std::vector<MVertex*> &vec,
-                        std::vector<MVertex*> &vertices, int minVertex = 0)
+                        std::vector<MVertex*> &vertices)
 {
   for(int i = 0; i < num; i++){
-    if(indices[i] < minVertex || indices[i] > (int)(vec.size() - 1 + minVertex)){
+    if(indices[i] < 0 || indices[i] > (int)(vec.size() - 1)){
       Msg::Error("Wrong vertex index %d", indices[i]);
       return false;
     }