fix cutEdge