Fixed a bug in rpc calls