diff --git a/Geo/MVertex.cpp b/Geo/MVertex.cpp
index bc12cecde6a78593e7fe7bdb9837b1a6db6ff6e4..726baf39bf957b234b2488f5ebb2e63cd6eef71c 100644
--- a/Geo/MVertex.cpp
+++ b/Geo/MVertex.cpp
@@ -154,7 +154,7 @@ void MVertex::writeMESH(FILE *fp, double scalingFactor)
   if(_index < 0) return; // negative index vertices are never saved
 
   fprintf(fp, " %20.14G      %20.14G      %20.14G      %d\n", 
-          x() * scalingFactor, y() * scalingFactor, z() * scalingFactor, 0);
+          x() * scalingFactor, y() * scalingFactor, z() * scalingFactor, _index);
 }
 
 static void double_to_char8(double val, char *str)