small fix when mouse leaves element