Fixing unexpected behaviour with mouseout mouseenter