loop fix for tooltips