fix bug in tooltips