Fixed unit radius calculation error