Fixed a bug in the tooltip display.