closing HTML tag for inline math fixed