fix bug: where statement condition error