Fixed slowdown introduced by previous fix in arc segments