Fixed bug when re-editing the state of a todo
Fixed bug when re-editing the state of a todo