removing empty metadata fields