diff --git a/Mesh/yamakawa.cpp b/Mesh/yamakawa.cpp
index f4478f60d758c38d93f0374c2c6b484400d0bf9a..ea43a817ef5930b114c7ab21fe8fd3159f56758d 100644
--- a/Mesh/yamakawa.cpp
+++ b/Mesh/yamakawa.cpp
@@ -6394,7 +6394,7 @@ void Recombinator_Graph::execute(GRegion* gr) {
     }
   }
 
-  typename boost::property_map<graph_type, double>::type weight_map =
+  typename boost::property_map<graph_type, double vertex::*>::type weight_map =
     get(&vertex::quality, graph);
 
   std::vector<vertex_id> vertices;