Fix x and index of tooltip.show API - #509