fix a panel bug