Fixed problem with the chosen representative in DAGBuilderImpl