Fix bug with wrong tooltip offset