diff --git a/Geo/GeoStringInterface.cpp b/Geo/GeoStringInterface.cpp
index 182ac6cd06e991398d95ba2f1e02609a3235e0a5..3da254298864d46c375a5d3bdcf66216b407c3fa 100644
--- a/Geo/GeoStringInterface.cpp
+++ b/Geo/GeoStringInterface.cpp
@@ -101,6 +101,7 @@ void add_infile(const std::string &text, const std::string &fileName, bool force
     GModel::current()->destroy();
   }
   GModel::current()->importGEOInternals();
+  GModel::current()->setName(split[1]);
   CTX::instance()->mesh.changed = ENT_ALL;
 
   // here we have to be explicit otherwise we append compressed stuff to ascii