Fix bug in arc to bezier conversion