fixed stats generation bug (yes, already).