Fix cutting through a vertex bug. The algorithm is now quite effective.