Fixed bug about panel