fix bug in setCheckAll method