fix tooltip for inverted color schemes