Fix: remove node metadata when rewriting deleted one