Fixes a bug that caused tooltips to not clear