fixing visual bug with tooltip