Fix bug in finding correct radio button groups.