correct a bug on equals method