fix checkbox required problem