Fixed bug with deleting searches