fix a bug of control panel