Fixed TaskScheduler, key must be comparable.