Fix tooltip plugin calculated offset bug