fix object equals bug