Fix lead search

For issue #4