Fixing equal and not equal bugs.