object.inventory does not exist