fix(destroy): fix shadowing bug in destroy