fix tooltip on dev version

Should allow tooltip to work both on 1.x on dev.
There is probably a range of dev version where tooltip does not work still, 
but anyway they where broken on master at some point.