fixing saving checkboxes