fixes #2747 - scoped search lambda takes one argument