fixed a bug where I was setting the wrong boolean flag inside of an edge.