fixing math-parser problem