fixed a bug where two nodes may be multiply connect to each other?