bugfix for checkboxes