fix RPC bytes transfer