Fix ClusterScheduler bug to avoid allocating tasks to same slave