Fixed issue where submenu fails to close when hovered quickly