bug in radius calculation