Fix bug: erase deleted task from to-do when marked as completed