fix bug of task delete