fix #2058 double-task deletion