bug fixed for stat
Merge pull request #253 from wenshao/master

bug fixed for stat