Fix broken AMD support