Fixed summarize_stats bug.