fixed some misbehavior in tooltips