properly fix oper where clause bug