fixes incorrect socket.send usage in PBC connection. Socket.sendall is used instead