Fixes tokens and incoming/outgoing for arcs.