Fixing bug with arcs