fix some bug about panel