Equality test fix