Fixed an issue with duplicate references in metadata.