If the metadata node had a parent it will duplicate the nodes rather than update them .. Took a while to suss it out but I found a real simple fix that works for me and doesn't seem to have any implications .. that I've seen.
If the metadata node had a parent it will duplicate the nodes rather than update them .. Took a while to suss it out but I found a real simple fix that works for me and doesn't seem to have any implications .. that I've seen.

(Adding this again)

jmcneese/metadata