Fixed merging of AMD dependencies