fixed statistics bug.