Fixed DOM leakage in destroy.