Fix bookkeeping bug with checkboxes