Fix race condition on Scheduler init.