fix bug in destroy