fixing mouseenter bug