fix amd issue