Fix the saving of the Stats to the stats table.