fix unable delete task issue