JC: fixed bug again in add_summary_to_stats_params