Fix TaskList's deleted function