Minor bugfix while showing panels