fixed panel bugs