fix bug in select utils