fixed custom tooltipClass bug