fixed external tooltip script bugs