diff --git a/Mesh/CenterlineField.cpp b/Mesh/CenterlineField.cpp
index e9511971a1235ad29fde4dd993d7bc6dae019b40..849b98494a510a57f2fbcfa0ec819cbc2d2d8354 100644
--- a/Mesh/CenterlineField.cpp
+++ b/Mesh/CenterlineField.cpp
@@ -787,11 +787,11 @@ void Centerline::extrudeBoundaryLayerWall(GEdge* gin, std::vector<GEdge*> boundE
     GRegion *eRegion = (GRegion*) extrudedE[1];
     eRegion->addPhysicalEntity(6);
     current->setPhysicalName("wallVolume", 3, 6);//dim 3 tag 6
-    
+
     //if double extruded layer
     if (nbElemSecondLayer > 0){
       std::vector<GEntity*> extrudedESec = current->extrudeBoundaryLayer
-      	(eFace, nbElemSecondLayer,  hSecondLayer, dir, -5);
+      	(gfc, nbElemSecondLayer,  hSecondLayer, dir ? 0 : 1, -5);
       GFace *eFaceSec = (GFace*) extrudedESec[0];
       eFaceSec->addPhysicalEntity(9);                    //tag 9
       current->setPhysicalName("outerSecondWall", 2, 9);//dim 2 tag 9