Fixed tooltip close function when click anywhere.