Fix out-of-order packet arrival bug.