Fixing checkboxes not being marked as checked.