Fix LATEX bug