Adding try except to make checkboxes work