Fix an attribute bug in appendCheckbox and appendRadio