Fixed issue where VM gateway wil not work when there are no other gateways installed