Fixed problem that caused crash when upgrading all formulas.