Bug fixed.Newly added items were not saving state.

Newly added items were not saving their states.

Steps to reproduce.
Added a new item.
Mark it as done.
restart the app
Item’s done state was not saved.