Get rid of global vm ref