Fixes invalid position of tooltips