Котлин Радиогруппа слушатель

I used binding.radioGroup.checkedRadioButtonId 
when I should have used 
binding.radioGroup.setOnCheckedChangeListener { _, checkedId ->, when I did the change it solved the problem.
Sore Shrew