Fixed saving the done state of a command when it changes.