Correct equality check