Bug in stats class fix