fix in getMetadata process