bug fixes to checkboxes