fix an error about panel