fix ellipse coordinates transformation