fix the format of formula