Fix a bug when splitting a closed arc.