Fix bug in diamond shaped dependency tree for dist units.
Fix bug in diamond shaped dependency tree for dist units.

datawire/quark,datawire/quark,datawire/quark,datawire/quark,datawire/quark,datawire/quark