fixed ellipse angle calculation