corrected bug of checbox