fixed a switch checkboxes