fix mouseleave bug