Fix part of bug when cutting through edge.