fix AMD support