Fix ClockScheduler.
minor changes