Added a default value for null attributes in metadata