Fixed checkboxes not getting checked