minor fix in rpc.c