fix for ping value check and transmit buffer bug