diff --git a/dumux/material/constraintsolvers/compositionfromfugacities.hh b/dumux/material/constraintsolvers/compositionfromfugacities.hh
index 88e73f5c91dd1bd232ed58817e1b443a52870a3c..7efae4f4d119191195b1acaf8f07910818413a98 100644
--- a/dumux/material/constraintsolvers/compositionfromfugacities.hh
+++ b/dumux/material/constraintsolvers/compositionfromfugacities.hh
@@ -107,7 +107,7 @@ public:
             solveIdealMix_(fluidState, paramCache, phaseIdx, targetFug);
             return;
         }
-#if !DUNE_VERSION_NEWER(DUNE_COMMON,2,6)
+#if !DUNE_VERSION_NEWER(DUNE_COMMON,2,7)
         Dune::FMatrixPrecision<Scalar>::set_singular_limit(1e-25);
 #endif
         // save initial composition in case something goes wrong
diff --git a/dumux/material/constraintsolvers/immiscibleflash.hh b/dumux/material/constraintsolvers/immiscibleflash.hh
index 1400ddd06b760b41e056a6c9cdd1f170e7f0a898..ebc40dda476c2b5c612c4520c5f5741c4ba74945 100644
--- a/dumux/material/constraintsolvers/immiscibleflash.hh
+++ b/dumux/material/constraintsolvers/immiscibleflash.hh
@@ -121,7 +121,7 @@ public:
                       const typename MaterialLaw::Params &matParams,
                       const ComponentVector &globalMolarities)
     {
-#if !DUNE_VERSION_NEWER(DUNE_COMMON,2,6)
+#if !DUNE_VERSION_NEWER(DUNE_COMMON,2,7)
         Dune::FMatrixPrecision<Scalar>::set_singular_limit(1e-25);
 #endif
 
diff --git a/dumux/material/constraintsolvers/ncpflash.hh b/dumux/material/constraintsolvers/ncpflash.hh
index 512646fa219fdeb9fb77189eabfd6166984768de..aaf143152dd5ca5fac7414d8433908cae9916ca1 100644
--- a/dumux/material/constraintsolvers/ncpflash.hh
+++ b/dumux/material/constraintsolvers/ncpflash.hh
@@ -147,7 +147,7 @@ public:
                       const typename MaterialLaw::Params &matParams,
                       const ComponentVector &globalMolarities)
     {
-#if !DUNE_VERSION_NEWER(DUNE_COMMON,2,6)
+#if !DUNE_VERSION_NEWER(DUNE_COMMON,2,7)
         Dune::FMatrixPrecision<Scalar>::set_singular_limit(1e-25);
 #endif