bug fix at statistics