fixed an error that caused 180° circle segments do be drawn as straight line