fix issue 303
Merge pull request #308 from drevicko/search-1.1-cursor-fix

should fix issue 303