fix select in DAO