fixed math.js