Fix broken equality check.