fixed bug in create topo