Fix equality check