fix inventory unit orphan removement