fixed MathMax usage