Fixed the amd build