diff --git a/ProcessLib/HydroMechanics/CreateHydroMechanicsProcess.cpp b/ProcessLib/HydroMechanics/CreateHydroMechanicsProcess.cpp
index 26ad711fb421f5d39bd13ab5ad3664147f5a7441..2ae2f12828f8417baefa5686b1ea5d69fcdf79a3 100644
--- a/ProcessLib/HydroMechanics/CreateHydroMechanicsProcess.cpp
+++ b/ProcessLib/HydroMechanics/CreateHydroMechanicsProcess.cpp
@@ -169,9 +169,9 @@ std::unique_ptr<Process> createHydroMechanicsProcess(
     std::array const requiredSolidProperties = {MaterialPropertyLib::porosity};
     for (auto const& m : media)
     {
-        m.second->phase("Gas").checkRequiredProperties(requiredGasProperties);
-        m.second->phase("Solid").checkRequiredProperties(
-            requiredSolidProperties);
+        checkRequiredProperties(m.second->phase("Gas"), requiredGasProperties);
+        checkRequiredProperties(m.second->phase("Solid"),
+                                requiredSolidProperties);
     }
 
     // Initial stress conditions