Fixed the radius function