174c174
< self.allFormulas[int(id)] = formula
---
> self.allFormulas[int(id)] = formula.tostring()