Fixed bug of arcs that start and end at the same node