Fixing rounding issue in safari

without this, safari shows weird rounding issues when drawing the arcs on the canvas.