fix error 26 in ControlPanel