Bug fixed: RefVars for instructions are linked correctly