fixed bug in delete_item