Fixed up getSelectedradio() function.