Fixed ping avg&max sequence error.

In some cases this problem cause avg and max value to invert.