fixed race condition when creating networks and firewalls