fixes possible ping-timing bug