Fixed bug for tooltips