Fixed a bug of TipPanel