I'm not sure if this issue is very repeatable, but there is oshw-logo.svg in issue #174 which has this problem. Green (selected) polygon on the screenshot is correct, but red one underneath is what you get with this issue. I do not understand enough why it happens. If you add to svg
which means it is a point at the last position after problem curve then it draws correctly.