fixed bug when setting "defaultValues" on a checkbox