Fixing of searchItems method.