bugfix for AMD support