fixed a bug for deleting inappropriate inventory items