fix bug in Topology Helper