[distribuded] Fixed isDone in Scheduler