bug#1936: select returns incorrect value with block argument