Fixed FairScheduler.

TODO: fix ResourcePool