fix object equality check