fix for exporting advanced reports to CSV file