Fixed error in destroy.