fixed math in ellipse & arc