Fixed a few Bugs with the stats function