fix bug with select_one()