Minor tweak to equality check

Needed for compile.