VM::isMain() fixed