Fixed issue with search not deleting item