fixed bug with metadata extra field