fix a select-in-element bug, fix #23