bug fix in formulas for cdwoeModel