ugly fix to GUI isChecked problem