fixed the delete task issue