Fixes closing tag on math div