fixed minor bugs with tool tip's position