Fix reading of old-style topologies.