Fixing RPC call error