Fix in setting proper cost calculator in Scheduler