Fixed some statistics errors