Bug in tooltip handling