fix ControlPanel.ts