Fix bug where outgoing edges are wrongly colored