Stats bug fix