Fix multi-type tooltip bug