Fixes for CSV script so it uses original capitalization of custom field names