Fixed error in export_results_to_csv() method.