Fix amd issue.