Fix bug where metadata is not read correctly in content file