fixed bug in setNodesByClickingOnEdge