fixing the checkboxes