diff --git a/src/runner.c b/src/runner.c
index 0e76092d2fdaa39fb817b06bb949767ee3bf5ed3..bc6bc4f738129ee2dcf7bf12b11b22029ef76f19 100644
--- a/src/runner.c
+++ b/src/runner.c
@@ -1933,7 +1933,8 @@ void runner_do_timestep(struct runner *r, struct cell *c, int timer) {
         /* What is the next starting point for this cell ? */
         ti_gravity_beg_max = max(ti_current, ti_gravity_beg_max);
 
-      } else { /* stars particle is inactive */
+        /* star particle is inactive but not inhibited */
+      } else if (!spart_is_inhibited(sp, e)) {
 
         const integertime_t ti_end =
             get_integer_time_end(ti_current, sp->time_bin);