fixed bug in metadata