fix min --> max for radius error in get_radius