small bug fix in stats