fixed a formula_input bug