fixed edge_flip