try to fix bugs in initVar using RPC