diff --git a/ProcessLib/TimeLoop.cpp b/ProcessLib/TimeLoop.cpp
index 393f663a2ec80b484ec8df35e25a0dbe08c3c8a3..52374d5b84245394bc7e30af52ba3352c1c13fb0 100644
--- a/ProcessLib/TimeLoop.cpp
+++ b/ProcessLib/TimeLoop.cpp
@@ -491,7 +491,7 @@ bool TimeLoop::loop()
                             timesteps, t, *_output, &Output::doOutput);
         }
 
-        if (t + dt > _end_time ||
+        if (t == _end_time || t + dt > _end_time ||
             t + std::numeric_limits<double>::epsilon() > _end_time)
         {
             break;