Fix bug with checkboxes.