Fixed a small bug when there is only one arc