Fixed management of objects in odm.