Correctly place math elements.