fix panels bug