fix latex formula