Fix statistic collection
Merge pull request #6 from legion-github/master

Fix statistic collection