Fixing AMD support