fixed a nasty issue caused by duplicate edge list entries