make tooltips get drawn properly