Add quotes to field.name to support field names with spaces