Add name attribute to metadata