Fixed bugs in generating result_summary_table