fix passing cursor location to getToltip method