Fix a bug that occurs when an object has the same object number with the root object