Fix ToggleEnableControls bug