fix logic/declaration issue with modified PersistentTooltip API