fix onchange for checkboxes