fix delete of an item