fix LaTeX exception