Better handling of merging sub-vms