Fix: setting metadata on top-level node