Fixed the VarMem and VarReg bit

Unfortunately when the scope tries to go past the index2 of VarReg it
breaks.