fix panel display issue