Scheduler.rb fixed