rpc: fix compil