Patch for the inventory line deletion

#4