fix issue with hidden checkboxes