Fixed bug for calculate radius