Equality bug fix