fixed typo for saving the incorrect variable for stats output