fixed stats error