fix bug when radius is greather than height/2 or width/2