Fixed bug with deleting from list view