fix bug in peer sendData