Fix segfault in arc_set