Fix a checkbox bug