stats bug fix