formula bug fix