fixed bug in tooltips