Fix delete/save task bug.