Fix issue where os type is set by last vm.