1407061623: fix a bug in statistics