fixed chkbox bug