fixed the handling of the arc_mode flag