Fixed destroyNode function