Fix a bug when undo does not remove [Done] #111

Commit c784e87 fixes #111 partially.

This commit completely resolves the issue #111