fix the latex bug