Fixed rescheduling bug.