'fixed' a bug where it would create double the amount of edges.