fix select bug (again)