Fixed bug 10231 partly: If finish_edge was called, then now correctly.

Written in conjunctive because the bug that it never gets called with the current construction remains.