fixed output fields error preventing fields with underscores in name from being output to CSV properly