Fix removal of edges.