fixed nameselect bug