diff --git a/examples/main.c b/examples/main.c
index a28faa628b856b3f1917331aecc6b95835c628b3..cebfe7f98241e3a67b82e28e22f861d58289ee96 100644
--- a/examples/main.c
+++ b/examples/main.c
@@ -468,7 +468,7 @@ int main(int argc, char *argv[]) {
         "[ms]\n");
 
   /* Let loose a runner on the space. */
-  for (j = 0; e.time < time_end; j++) {
+  for (j = 0; e.ti_current < max_nr_timesteps; j++) {
 
 /* Repartition the space amongst the nodes? */
 #ifdef WITH_MPI