fix panel bug