Added a missing markDirty in AdaptorIInventory 

Fixes #446