Fix latex formula