Fixes boolean logic in same_obj()