Fix: crash in Scheduler._reschedule()