fix for mathjax handling