math: fix cr check, stricter except check