Fixed a problem that crashed the program when drawing a circle shape