Fix a bug with tooltips