fix panel issues