Fixed bug in hiding tooltip