fixed a bug in arc segment intersection