fixed bug in the stats