Fix AMD issues.