diff --git a/io/file/amiramesh/amirameshwriter.cc b/io/file/amiramesh/amirameshwriter.cc
index 3d546a0df5347e4006799483272fbe6f5b8d5344..42d55dbcce9fa45e11e22c629366f162fc81bdec 100644
--- a/io/file/amiramesh/amirameshwriter.cc
+++ b/io/file/amiramesh/amirameshwriter.cc
@@ -55,7 +55,7 @@ void Dune::AmiraMeshWriter<GridType, DiscFuncType>::writeGrid(const GridType& gr
   for (; vertex!=endvertex; ++vertex)
   {
     int index = vertex->index();
-    Vec<3, double> coords = vertex->geometry()[0];
+    FieldVector<double, 3> coords = vertex->geometry()[0];
 
     ((float*)geo_node_data->dataPtr())[3*index+0] = coords(0);
     ((float*)geo_node_data->dataPtr())[3*index+1] = coords(1);
@@ -218,10 +218,10 @@ void Dune::AmiraMeshWriter<GridType, DiscFuncType>::writeGrid(const GridType& gr
   for (; vertex!=endvertex; ++vertex)
   {
     int index = vertex->index();
-    Vec<DIM, double> coords = vertex->geometry()[0];
+    FieldVector<double, DIM> coords = vertex->geometry()[0];
 
-    ((float*)geo_node_data->dataPtr())[2*index+0] = coords(0);
-    ((float*)geo_node_data->dataPtr())[2*index+1] = coords(1);
+    ((float*)geo_node_data->dataPtr())[2*index+0] = coords[0];
+    ((float*)geo_node_data->dataPtr())[2*index+1] = coords[1];
 
   }