Fixing the dropdown list mouseleave event