Changed a little logic in vm.c, clearer now.