fix bug in tooltip