Fixed limitation of search items

Fixes bug #10513