replacing undefined data fields in download