Update object.di

Fix issue 2396 and 8828.
Update object.di

2.063 compatibility.
Merge pull request #442 from damianday/patch-1

Fix issue 8828