Fixed bugs that were causing problems with the custom stats.

I fixed the bugs in the custom stats it should now be working correctly.