Fix a bug using == for equality.