fix metadata keys