we have to check if VPC is null bfore calling it. VPC is not used in gest networks, so deploying a new VM was broken.