Radio button loosing selected state inside popup

Radio button loosing selected state inside popup

I have radio buttons inside popup dialog.
In code I had one of them selected.
When the popup comes up first time the selected radio button is highlighted.
When I close the popup and open it again the selected highlight is missing.
When I again select any other button it shows highlighted, but when I close the popup and open it again the selection disappears again.