fixed kernel errors on amd cards