Fix timing bug for toMathML check