fixed firefox bug by converting dashed line to circle instead of arc