Fixed bug in ellipse drawing