Bug fix drawing of ellipse