Fix weird AMD behavior.