Fix bug with tooltips appearing when they shouldn't.