fixed a rare crash when trying to display tooltips