bugfix in params loading and formulas