Fix typo in equality check