fixed the select issue