fix latex bug