Improve statistics measurement, Remove invalid statistics