Fixed bug with drawing ellipses