fix metadata rule