fix all formulas