fixing destroy task