diff --git a/src/space.c b/src/space.c
index 1b5ba0e51cf399621d5edfb31b8ce06fb894fb88..099a2dcb29321ba7a5e42c4c57254f551681d51d 100644
--- a/src/space.c
+++ b/src/space.c
@@ -1889,7 +1889,7 @@ void space_rebuild(struct space *s, int repartitioned, int verbose) {
 
     const int is_local = (c->nodeID == engine_rank);
     const int has_particles = (c->hydro.count > 0) || (c->grav.count > 0) ||
-                              (c->stars.count > 0) | (c->black_holes.count > 0);
+                              (c->stars.count > 0) || (c->black_holes.count > 0);
 
     if (is_local) {
       c->hydro.parts = finger;