Small fix in metadata reader