Fix parsing old-style topologies.