fixed commonMath isnan assert issue