fixed checking of radiobuttons