fix multi-VM problems