Fix equality check.