Fixed tooltip rule generation.