fix metadata template stuff