Fixes a bug that caused tooltips to not clear after switching tabs.

Fixes a bug that caused tooltips to not clear after switching tabs.