Fix object equality check when same object_id