bugfix for sql Eval