Fixed bug of control panel.