fix ellipse drawing