Fix for checkboxes and radio buttons.