Fixed math function calls