fixed bug: recalculate distinct value if there is <, <=, >= or >