fixed small bug with panel