fix mouseenter/mouseleave behavior