fix cpu exception check bug