Fixed bugs in Vm
Generated stuff compiles now