Fixed error in formulas