Fixed a bugs when execute statistic of edge