Fix MathJax type rendering issue