Fixed a major bug in latexLm