Fix the deletion of todos