Fixed a bug in SplitEdge