fixed discrepancy with a checkbutton and its value