fix cache agent bug and DASH always download from the closest candidate but attached to the most closest agents in all agents