Fix some bugs

- Add empty equation
- Update more that once.
Fix bug when remove equation during update