Fixed error in mathjax hook