Fixing malformed metadata.json