diff --git a/Common/OpenFile.cpp b/Common/OpenFile.cpp
index eee5a309ab24f4cc0a25e5e5c8ccb462efec4e49..6d32978dc62bb14ab4f2c1ec48dbb95b2fd3089a 100644
--- a/Common/OpenFile.cpp
+++ b/Common/OpenFile.cpp
@@ -408,7 +408,7 @@ int MergeFile(const std::string &fileName, bool warnIfMissing)
     GModel::current()->setName(split[1] + ".geo");
     GModel::current()->setFileName(split[0] + split[1] + ".geo");
     CTX::instance()->launchSolverAtStartup = 0;
-    return status;
+    return 1;
   }
 #endif
 #if defined(HAVE_ONELAB_METAMODEL) && defined(HAVE_FLTK)