diff --git a/src/space.c b/src/space.c
index 04271ca3670e8982b21251f721eb36b17c551ca3..ab47a4965ef1ead3ff942ba944f4ee28736d5bee 100644
--- a/src/space.c
+++ b/src/space.c
@@ -168,7 +168,9 @@ void space_regrid(struct space *s, double cell_max, int verbose) {
   if (nr_parts > 0) {
     if (s->cells != NULL) {
       for (int k = 0; k < s->nr_cells; k++) {
-        if (s->cells[k].h_max > h_max) h_max = s->cells[k].h_max;
+        if (s->cells[k].nodeID == engine_rank && s->cells[k].h_max > h_max) {
+          h_max = s->cells[k].h_max;
+        }
       }
     } else {
       for (size_t k = 0; k < nr_parts; k++) {