Trouble with search iterators

Had the same problem and found this solution. Hope it helps.