diff --git a/src/debug.c b/src/debug.c
index 5be0370f64f2c21e6b28c40cc9802520087ae07f..7a50368f069deef0c7d77b4ac3407ab059888d68 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -226,7 +226,8 @@ int checkCellhdxmax(const struct cell *c, int *depth) {
   /* Check. */
   int result = 1;
   if (c->h_max != h_max) {
-    message("%d Inconsistent h_max: cell %f != parts %f", *depth, c->h_max, h_max);
+    message("%d Inconsistent h_max: cell %f != parts %f", *depth, c->h_max,
+            h_max);
     message("location: %f %f %f", c->loc[0], c->loc[1], c->loc[2]);
     result = 0;
   }
diff --git a/tests/test125cells.c b/tests/test125cells.c
index bb92d8e4b0fb8eb19afefc268a03ac0faa93737b..3ae80d952f78e8f50235cf38af493501c1c97634 100644
--- a/tests/test125cells.c
+++ b/tests/test125cells.c
@@ -269,12 +269,12 @@ struct cell *make_cell(size_t n, const double offset[3], double size, double h,
         set_velocity(part, vel, size);
         set_energy_state(part, press, size, density);
 
+        hydro_first_init_part(part, xpart);
+
         part->id = ++(*partId);
         part->ti_begin = 0;
         part->ti_end = 1;
 
-        hydro_first_init_part(part, xpart);
-
 #if defined(GIZMO_SPH)
         part->geometry.volume = part->conserved.mass / density;
         part->primitives.rho = density;
@@ -311,6 +311,7 @@ struct cell *make_cell(size_t n, const double offset[3], double size, double h,
   cell->loc[1] = offset[1];
   cell->loc[2] = offset[2];
 
+  cell->ti_old = 1;
   cell->ti_end_min = 1;
   cell->ti_end_max = 1;