Fix packet loss calculation.