fix the bug in Scheduler!

make SCHEDULER_QUEUE_CLASS works!