fix innaccurate tool tip rproblem