Fixing an error that saves the number of msgs instead of therads when saving the stats for a report.