make sure the when a inventory exists we remove the node