Fix formula bug