Fixed issue with deleting items.