diff --git a/ProcessLib/LIE/HydroMechanics/LocalAssembler/HydroMechanicsLocalAssemblerFracture-impl.h b/ProcessLib/LIE/HydroMechanics/LocalAssembler/HydroMechanicsLocalAssemblerFracture-impl.h
index 61c9ef463a76f1b91cda7f39a8c6d3045d52b971..30838cdb951504ba0e74a0ae2bdf45c0f3a7f52d 100644
--- a/ProcessLib/LIE/HydroMechanics/LocalAssembler/HydroMechanicsLocalAssemblerFracture-impl.h
+++ b/ProcessLib/LIE/HydroMechanics/LocalAssembler/HydroMechanicsLocalAssemblerFracture-impl.h
@@ -196,8 +196,8 @@ void HydroMechanicsLocalAssemblerFracture<ShapeFunctionDisplacement,
     Eigen::MatrixXd const global2local_rotation =
         R.template topLeftCorner<ShapeFunctionPressure::DIM, GlobalDim>();
 
-    auto const& gravity_vec =
-        (global2local_rotation * _process_data.specific_body_force).eval();
+    DimVectorType const gravity_vec =
+        global2local_rotation * _process_data.specific_body_force;
 
     ParameterLib::SpatialPosition x_position;
     x_position.setElementID(_element.getID());
diff --git a/ProcessLib/LIE/HydroMechanics/LocalAssembler/HydroMechanicsLocalAssemblerFracture.h b/ProcessLib/LIE/HydroMechanics/LocalAssembler/HydroMechanicsLocalAssemblerFracture.h
index 35fad66d722b96b8f34d2e485e11df338531dc7c..84e231dd3425ecdb411e0f900ad28440f4d61d27 100644
--- a/ProcessLib/LIE/HydroMechanics/LocalAssembler/HydroMechanicsLocalAssemblerFracture.h
+++ b/ProcessLib/LIE/HydroMechanics/LocalAssembler/HydroMechanicsLocalAssemblerFracture.h
@@ -99,6 +99,7 @@ private:
                                      GlobalDim>;
 
     using GlobalDimVector = Eigen::Matrix<double, GlobalDim, 1>;
+    using DimVectorType = typename ShapeMatricesTypePressure::DimVectorType;
 
     HydroMechanicsProcessData<GlobalDim>& _process_data;