Fixed dynamic setting of checkboxes.