bugfix for the topology where just one switch exists.