- fix a major bug for creating dupilcates in metadata profile