Fix issue due to refactoring.
Tasks can now be set as done internally.