Bug fix in mesos role task.