Fix for AMD support