fixed bug in FormulaPageActivity