diff --git a/ProcessLib/ProcessVariable.cpp b/ProcessLib/ProcessVariable.cpp
index 440b79123feb6c18e9f2c0cd46ed9a526d732069..837d09da665e92160c9660a63fd44cfd9028b104 100644
--- a/ProcessLib/ProcessVariable.cpp
+++ b/ProcessLib/ProcessVariable.cpp
@@ -313,14 +313,8 @@ void ProcessVariable::updateDeactivatedSubdomains(double const time)
     auto is_active_in_subdomain = [&](std::size_t const element_id,
                                       DeactivatedSubdomain const& ds) -> bool
     {
-        if (!ds.isInTimeSupportInterval(time))
-        {
-            return true;
-        }
-
-        auto const& e = *_mesh.getElement(element_id);
-        auto ret = !ds.isDeactivated(e, time);
-        return ret;
+        return (!ds.isInTimeSupportInterval(time)) ||
+               !ds.isDeactivated(*_mesh.getElement(element_id), time);
     };
 
     auto const number_of_elements = _mesh.getNumberOfElements();