fix sign of formula