Fixes some mathjax rendering errors