fix MathJax sometimes not running