Added a bugfix for a network with multiple switches.