fix for object ids in document