Fix bug with selecting elements with extra nodes in the select tag.