Fix equals check.