RPC: fixed typo in params reading