Fixed a few bugs with tooltips generator.