Fixed deleting resource from index