Fix bug on overridden == methods