quick update to math_base (just a error return change).