another minor fix to rpc.c