Corrected functionality of radio buttons