fixed negative radius issue on circles and ellipses