fix rpc call problem