Fixed a panel problem