fixed RPC errors.